<template>
    <div class="home-nav">
      <div v-for="item in navs" :key="item.text" class="nav-item">
        <div class="nav-icon">{{ item.icon }}</div>
        <div class="nav-text">{{ item.text }}</div>
      </div>
    </div>
  </template>
  
  <script setup>
  defineProps({
    navs: {
      type: Array,
      required: true
    }
  })
  </script>
  
  <style scoped lang="less">
  .home-nav {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    .nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 20%;
      .nav-icon {
        font-size: 28px;
        margin-bottom: 4px;
      }
      .nav-text {
        font-size: 13px;
        color: #222;
      }
    }
  }
  </style>